<%--
  Created by IntelliJ IDEA.
  User: 29960
  Date: 2022/8/26
  Time: 10:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%String path=request.getContextPath();%>
<%--<!DOCTYPE html>--%>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加消耗品</title>
    <link type="text/css" rel="stylesheet" href="<%=path%>/admin/car/fontsawesome/css/font-awesome.css"/>
    <link type="text/css" rel="stylesheet" href="<%=path%>/admin/car/css/style.css"/>
</head>
<body>
<div class="main_box">
    <div class="cont_box editpro_box">

            <form action="#" method="post" id="sign_form">
            <ul class="addpro_box">
                <li>
                    <label>消耗品名称：</label>
<%--                    <input type="text" placeholder="请输入消耗品名称" name="proname" required data-rule-proname="true" data-msg-required="消耗品名称不能为空" data-msg-proname="请输入正确的消耗品名称"/>--%>
                    <select name="J_letem_name" data-msg-required="消耗品名称不能为空" required data-rule-proname="true" data-msg-proname="请输入正确的消耗品名称">
                        <option value="">请选择要添加的消耗品名称</option>
                        <c:forEach items="${all}" var="all">
                            <option value="${all.j_letem_name}">${all.j_letem_name}</option>
                        </c:forEach>
                    </select>
                </li>
                <li>
                    <label>消耗品数量：</label>
                    <input type="text" placeholder="请输消耗品数量" name="H_Inventory_quantity" required data-rule-digits="true" data-msg-required="消耗品数量不能为空" data-msg-digits="请输入正整数"/>
                </li>
            </ul>
            <div class="probtn_box clearfix">
                <input type="button" value="确定" class="btn blue_btn submit"/>
            </div>
        </form>
    </div>
</div>
<!--javascript include-->
<script src="<%=path%>/admin/car/js/jquery-2.2.1.min.js"></script>
<script src="<%=path%>/admin/car/js/jquery.dataTables.min.js"></script>
<script src="<%=path%>/admin/car/js/bootstrap-datepicker.js"></script>
<script src="<%=path%>/admin/car/js/jquery.validate.min.js"></script>
<script src="<%=path%>/admin/car/js/jquery.form.min.js"></script>
<script src="<%=path%>/admin/car/js/other.js"></script>
<script>
    $(function(){
        $("body").other({formId:"#sign_form",formUrl:"${pageContext.request.contextPath}/admin/addDep"});//formUrl 表单请求地址
    });
</script>
</body>
</html>

